cmake_minimum_required(VERSION 3.10)
project(iVMotionStation)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# rapidjson 为相对目录,可以更改为绝对目录
include_directories(3rdParts)
include_directories(/opt/SOEM_1.4.0/include/soem)
link_directories(/opt/SOEM_1.4.0/lib)


set(SOURCE_FILES
    src/main.cpp  
	src/MotionTaskQueue.cpp  
	src/MotionRequestServer.cpp
	src/MotionResponseServer.cpp
	src/EthercatWorker.cpp
	src/ConfigData.cpp
	src/RealTimeData.cpp
	src/RobotDelta.cpp
)

set(HEADER_FILES
	src/MotionTaskQueue.h  
	src/MotionRequestServer.h
	src/MotionResponseServer.h
	src/EthercatWorker.h
	src/ConfigData.h
	src/RealTimeData.h
	src/RobotDelta.h
)

add_executable(iVMotionStation  ${SOURCE_FILES} ${HEADER_FILES})
target_link_libraries(iVMotionStation PUBLIC -lsoem -lpthread)
